package com.nursinghome.admin.mapper;

import com.nursinghome.bean.Salary;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SalaryMapper {
    //根据月份查询工资单
    List<Salary> selectByPicday(String data);
    //导出工资表
    //新增工资条
    Integer insert(Salary salary);
    //修改工资条
    Integer update(Salary salary);
    //根据月份和mid查询工资条
    Salary selectByMid(@Param("data") String data, @Param("mid") Integer mid);
    //根据sid查询对应的工资条
    Salary selectBySid(Long sid);
}
